package com.emspost.utils;

import cn.hutool.core.util.IdUtil;

import java.text.SimpleDateFormat;
import java.util.Date;

public class GenPayCodeAccessUtil {

    /**
     * 聚合支付访问验证
     */
    public static void main(String[] args) {
        Date now = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("ddMM");
        String nowStr = sdf.format(now);
        int last = 10 - Integer.parseInt(nowStr.substring(1,2));
        String str = "1809" + nowStr + last;
        System.out.println(str);
        System.out.println(IdUtil.simpleUUID());
    }
}
